class AddCoordinates < ActiveRecord::Migration
  def self.up
    add_column :restaurants, :latitude, :double, :null => false, :default => 0.0
    add_column :restaurants, :longitude, :double, :null => false, :default => 0.0
    add_column :customers, :latitude, :double, :null => false, :default => 0.0
    add_column :customers, :longitude, :double, :null => false, :default => 0.0
  end

  def self.down
    remove_column :restaurants, :latitude
    remove_column :restaurants, :longitude
    remove_column :customers, :latitude
    remove_column :customers, :longitude
  end
end
